package com.mlk.rbac.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.mlk.rbac.po.SysAclModule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 系统模块mapper
 * @author trek
 *
 */
@Mapper
public interface SysAclModuleMapper extends BaseMapper<SysAclModule>{
	
	/**
	 * 获取系统菜单(查询类型为0或者1的acl)
	 * @return
	 */
	List<SysAclModule> sysMenu(@Param("id") Integer id);

	/**
	 * 通过一组aclIds,查询所有的权限,其中权限type为2
	 * @param aclIds
	 * @return
	 */
    List<SysAclModule> selectPermissionByAclId(@Param("lists") Set<Integer> aclIds);
}
